package com.wxxymaker.model.dao;

import com.wxxymaker.model.entity.Shop;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface ShopDao extends JpaRepository<Shop, Integer>, JpaSpecificationExecutor<Shop> {

    /**
     * 根据公司名模糊查询
     * @param name 公司名
     */
    Shop findByNameLike(String name);

    List<Shop> findByTypeIn(Integer... types);

    List<Shop> findByTypeNotIn(Integer... types);

    List<Shop> findByIdIn(Integer... ids);
}
